import React from 'react'

const initState = {
  app: {
    name: 'app'
  },
}

const reduce = {
  updateAppName: (param) => state => ({
    app: {
      ...state.app,
      ...param
    }
  }),
}

const MainContext = React.createContext({
  ...initState,
  ...reduce
});

export default MainContext;
export { initState, reduce };
